Skip to content

Currency-decimals#619

Merged
grantmcdermott merged 4 commits into
mainfrom
currency-decimals
Jun 11, 2026
Merged

Currency-decimals#619
grantmcdermott merged 4 commits into
mainfrom
currency-decimals

Conversation

@grantmcdermott

Copy link
Copy Markdown
Owner

Closes #618

Also fixes a latent negative currency value issue.

Current behaviour:

library("tinyplot")
revenue = seq(-.5,2.5, length.out = 7)
tinylabel(revenue, "$")
#> [1] "$-0.5" "$0"    "$0.5"  "$1"    "$1.5"  "$2"    "$2.5"

With this fix:

pkgload::load_all("~/Documents/Projects/tinyplot/")
#> ℹ Loading tinyplot
revenue = seq(-.5,2.5, length.out = 7)
tinylabel(revenue, "$")
#> [1] "-$0.50" "$0.00"  "$0.50"  "$1.00"  "$1.50"  "$2.00"  "$2.50"

Created on 2026-06-10 with reprex v2.1.1

@grantmcdermott grantmcdermott merged commit ddcb19e into main Jun 11, 2026
3 checks passed
@grantmcdermott grantmcdermott deleted the currency-decimals branch June 11, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tinylabel: inconsistent decimal for currency formatters

1 participant